package QL;

import java.util.Map;

public class ButlerBlockAccountAddRequest implements IQLRequest
{
    /// <summary>
    /// 区服Id
    /// </summary>
    public long ZoneId;

    /// <summary>
    /// 需要封禁的玩家Id
    /// </summary>
    public long UserId;

    /// <summary>
    /// 封禁类型 1永久封禁 2限时封禁
    /// </summary>
    public long BlockType;

    /// <summary>
    /// 封禁时长，单位秒。仅在限时封禁时有意义。
    /// </summary>
    public long BlockDuration;

    /// <summary>
    /// 封禁原因
    /// </summary>
    public String OprationReason;

    /// <summary>
    /// 操作人
    /// </summary>
    public String Operator;

    @Override
    public String GetApiName()
    {
        return "butler.block.account.add";
    }

    @Override
    public void Validate()
    {
    }

    @Override
    public void AddParameters(Map<String, String> map)
    {
        map.put("zone_id", String.valueOf(ZoneId));
        map.put("user_id", String.valueOf(UserId));
        map.put("block_type", String.valueOf(BlockType));
        map.put("block_duration", String.valueOf(BlockDuration));
        map.put("opration_reason", OprationReason);
        map.put("operator", Operator);
    }
}
